import React from 'react';
import { Engine } from '../DesignerModels';

export const DesignerContext = React.createContext<Engine | null | undefined>(
  null,
);

interface ICanvasDomID {
  canvasDomID: string;
}
let INIT_CANVASDOMID_VALUE: ICanvasDomID = {
  canvasDomID: `canvasPlan-${Math.random() * 100000}`,
};
export const CanvasDomIDContex = React.createContext<ICanvasDomID>(
  INIT_CANVASDOMID_VALUE,
);
